package com.kaifamiao.hide;

public class Beast extends Animal {
    // 当子类中重新声明了与从父类中继承的同名字段时,
    // 就说 子类 隐藏(hide) 了从父类中继承的同名字段
    protected String name = "兽类";

    public void show(){
        System.out.println( super.name );
        System.out.println( this.name );
    }
}
